package difangame.sprite;

import java.awt.Point;
import framework.Level;
import framework.Sprite;


public class Frog extends Sprite {
    private final String myImageFile = "player.png";

    @Override
    public void initialize (Point position, Level l) {

        super.superInitialize(position, myImageFile, 20, 30, l);

        setMyName("frog");

    }

    @Override
    protected void move () {
        getMyCenter().x += 1;
        getMyCenter().y += 1;

        if (getMyCenter().y > 240) {
            getMyCenter().x = 0;
            getMyCenter().y = 0;
        }

    }

    @Override
    protected void action () {
        // no action

    }

}
